package com.athena.crm.domain.bo;

import com.athena.common.core.validate.AddGroup;
import com.athena.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.athena.common.core.domain.BaseEntity;

/**
 * 债权信息业务对象 asset_debt_info
 *
 * @author ruoyi
 * @date 2023-12-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class AssetDebtInfoBo extends BaseEntity {

    /**
     * 主键
     */
    @NotBlank(message = "主键不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空", groups = { AddGroup.class, EditGroup.class })
    private String title;

    /**
     * 正文
     */
    @NotBlank(message = "正文不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;

    /**
     * 发布时间
     */
    @NotNull(message = "发布时间不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date publishTime;

    /**
     * 债权数量
     */
    @NotNull(message = "债权数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer number;

    /**
     * 债权总数
     */
    @NotBlank(message = "债权总数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String debtTotal;

    /**
     * 转让人（方）
     */
    @NotBlank(message = "转让人（方）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transferor;

    /**
     * 受让人（方）
     */
    @NotBlank(message = "受让人（方）不能为空", groups = { AddGroup.class, EditGroup.class })
    private String transferee;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contacts;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactNumber;

    /**
     * 创建人
     */
    @NotBlank(message = "创建人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String createBy;

    /**
     * 修改人
     */
    @NotBlank(message = "修改人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String updateBy;

    /**
     * 原文连接
     */
    @NotBlank(message = "原文连接不能为空", groups = { AddGroup.class, EditGroup.class })
    private String url;


}
